From: Florian Müllner Date: Tue, 18 Jul 2017 17:20:42 +0000 (+0200) Subject: messageTray: Use spread syntax to get map keys X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~218 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a593e4587b30c9e8d9b01e4604bc6de437d713f5;p=gnome-shell.git messageTray: Use spread syntax to get map keys It wasn't supported when the code was originally written, now the fill-in code isn't accepted anymore ... https://bugzilla.gnome.org/show_bug.cgi?id=785084 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 63e6ca182..80c0dee58 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1042,7 +1042,7 @@ const MessageTray = new Lang.Class({ }, getSources: function() { - return [k for (k of this._sources.keys())]; + return [...this._sources.keys()]; }, _onSourceEnableChanged: function(policy, source) {